﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LightLog.Model.DTO;

namespace LightLog.Model.Input
{
    [Serializable]
    public class UserListInput : BasePageInput
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 管理员筛选(-1 全部,0 非管理员,1 管理员)
        /// </summary>
        public int HaveAdmin { get; set; }
    }


    [Serializable]
    public class UserInput
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Pwd { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 是否为管理员
        /// </summary>
        public bool IsAdmin { get; set; } = false;

        /// <summary>
        /// 用户和项目关联
        /// </summary>
        public List<UserProjectDTO> UserProjectList { get; set; }

    }
    [Serializable]
    public class UserUpdateInput : UserInput
    {
        public long UserId { get; set; }
    }

    [Serializable]
    public class UserChangeInput
    {
        public string OldPwd { get; set; }
        public string NewPwd { get; set; }
    }

    

}
